from selenium.webdriver.common.by import By
from common.base_page import BasePage
import config
import sys


class Login(BasePage):

    def __init__(self, driver):
        super().__init__(driver)

    def testLogin(self,username,password):
        self.get(config.url)
        self.send_text(username,By.XPATH,'//input[@placeholder="账号"]')
        self.send_text(password,By.XPATH,'//input[@placeholder="密码"]')
        self.left_click(By.XPATH,'//input[@name="submit"]')


